<html>
<head>
<title> Installing SSL Certificate for Qmail </title>
<meta name="Keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script src="locate.js"></script>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<script src="highlight.js"></script>
<body bgcolor="#FFFFFF" text="#000000" link="#0000A0" alink="#008000" vlink="#FF0000" onLoad="FindCorrectTOCPage(); prettyPrint()">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<p class="pagenavigation"><a href="52756.htm" target="_self"><img src="38976.gif" alt="Previous page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Previous page</a></p></td>
<td>
<p class="pagenavigation"><a href="52760.htm" target="_self"><img src="38977.gif" alt="Next page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Next page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc41518238.htm" target="TOC"><img src="38970.gif" alt="Locate page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Locate page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc41518238.htm" target="TOC"><a class="" title="" href="javascript:print();" target="_self"><img src="39072.gif" alt="Print this page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"></a></a></p></td>
</tr>
</table>
<h3 class="heading3">Installing SSL Certificate for Qmail</h3>
<p class="bodytext">To install a custom SSL certificate for Qmail on a Plesk server, follow these steps:</p>
<p class="bodytext">&nbsp;</p>
<ol class="listnumber"><li class="listnumber">Create a combined <code class="monospace">.pem</code> certificate file.<p class="listcontinue">To create a combined <code class="monospace">.pem</code> certificate file, start your favorite text editor and paste the contents of each certificate file and the private key in the file in the following order:</p>
<ol class="listnumber2"><li class="listnumber2">The private key</li><li class="listnumber2">The primary certificate</li><li class="listnumber2">The intermediate certificate</li><li class="listnumber2">The root certificate</li></ol><p class="listcontinue">Make sure that you include the <em class="emphasis">beg<em class="emphasis">in</em></em> and <em class="emphasis">end</em> tags of the key and each certificate including the dash lines. The resulting text should look like this:</p>
<p class="listcontinue"> </p>
<p class="listcontinue"><code class="monospace">-----BEGIN RSA PRIVATE KEY-----</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">(Your Private Key here)</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">-----END RSA PRIVATE KEY-----</code></p>
<p class="listcontinue"><code class="monospace">-----BEGIN CERTIFICATE-----..........</code></p>
<p class="listcontinue"><code class="monospace">(Your Primary SSL certificate here)</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">-----END CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace">-----BEGIN CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">(Your Intermediate certificate here)</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">-----END CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace">-----BEGIN CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">(Your Root certificate here)</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">-----END CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace"> </code></p>
</li><li class="listnumber">Save the combined certificate file&nbsp;as <code class="monospace">plesk.pem</code>.</li><li class="listnumber">Log in to a Plesk server through SSH as a root user.</li><li class="listnumber">Download the combined certificate file <code class="monospace">plesk.pem</code>.</li><li class="listnumber">Make a backup copy of the existing default SSL certificate for Qmail.<p class="listcontinue">For example for RedHat or Fedora operating systems, the SSL certificate file that you need to back up is <code class="monospace">var/qmail/control/servercert.pem</code>.</p>
<p class="listnote"><strong class="buttons">Note</strong>: For other operating systems, the default certificate file location may be different.</p>
</li><li class="listnumber">Open the default certificate file <code class="monospace">var/qmail/control/servercert.pem</code> by using your favorite text editor and replace the contents of the file with the content of the combined certificate file <code class="monospace">plesk.pem</code>.</li><li class="listnumber">Save and close the file.</li><li class="listnumber">To finish the certificate installation, restart Qmail.</li></ol><p class="bodytext"> </p>


</body>
<script>highlightTOC()</script>
</html>

